<h1><%=t ".title"%></h1>

<% form_for(@author) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :first_name, t('activerecord.attributes.author.first_name') %><br />
    <%= f.text_field :first_name %>
  </p>
  <p>
    <%= f.label :last_name, t('activerecord.attributes.author.last_name') %><br />
    <%= f.text_field :last_name %>
  </p>
  <p>
    <%= f.label :full_name, t('activerecord.attributes.author.full_name') %><br />
    <%= f.text_field :full_name %>
  </p>
  <p>
    <%= f.label :sex, t('activerecord.attributes.author.sex') %><br />
    <%= select(:author, :sex, get_sex_hash, :prompt =>true) %>
  </p>
  <p>
    <%= f.label :birth_date, t('activerecord.attributes.author.birth_date') %><br />
    <%= f.date_select :birth_date %>
  </p>
  <p>
    <%= f.label :death_date, t('activerecord.attributes.author.death_date') %><br />
    <%= f.date_select :death_date %>
  </p>
  <p>
    <%= f.label :cataloged,  t('activerecord.attributes.author.cataloged') %><br />
    <%= f.check_box :cataloged %>
  </p>
  <p>
    <%= f.label :country, t('activerecord.attributes.author.country') %><br />
    <%= collection_select(:author, :country_id, @countries, :id, :name, :prompt =>true) %>
  </p>
  <p>
    <%= f.label :biography, t('activerecord.attributes.author.biography') %><br />
    <%= f.text_area :biography %>
  </p>

  <p>
    <%= f.submit t('btn_create') %>
  </p>

<% end %>

<%= link_to t('btn_back'), authors_path %>